package com.zjt.entity.brandcategory;

/**
 * Created with IntelliJ IDEA.
 * User: xueyanbeijing
 * Date: 12-8-24
 * Time: AM5:30
 * To change this template use File | Settings | File Templates.
 */

import com.zjt.entity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 品牌类别关联表   商标名称与类别
 */
@Entity
//表名与类名不相同时重新定义表名.
@Table(name="s_brand_category")
public class BrandCategory extends BaseEntity {
    private long brandId;
    private long categoryId;

    public long getBrandId() {
        return brandId;
    }

    public void setBrandId(long brandId) {
        this.brandId = brandId;
    }

    public long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(long categoryId) {
        this.categoryId = categoryId;
    }

    @Override
    public String toString() {
        return "BrandCategory{" +
                "brandId=" + brandId +
                ", categoryId=" + categoryId +
                '}';
    }
}
